//
//  LeftWebViewController.m
//  MemoryTravel
//
//  Created by dllo on 16/1/5.
//  Copyright © 2016年 fcx. All rights reserved.
//

#import "LeftWebViewController.h"


@interface LeftWebViewController ()<UIWebViewDelegate>
@property (retain, nonatomic) UIWebView *webV;
@end

@implementation LeftWebViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];

    [self.navigationController.navigationBar setTitleTextAttributes:
  @{NSForegroundColorAttributeName : [UIColor whiteColor]}];

    self.navigationController.navigationBar.translucent = NO;

    self.view.backgroundColor = [UIColor whiteColor];

    self.webV = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];

    self.webV.delegate = self;

    [self.view addSubview:self.webV];

    [self getData:self.webUrl];
}

-(void)getData:(NSString *)webUrl{

    NSURL *url = [NSURL URLWithString:webUrl];

    NSURLRequest *request = [NSURLRequest requestWithURL:url];

    [self.webV loadRequest:request];

    [self.webV resignFirstResponder];
}

@end
